// src/config/api.config.js
const envConfigs = {
	development: {
		h5: {
			proxy: '/api', // H5代理前缀
			target: 'http://localhost:8080' // 开发服务器地址
		},
		app: 'http://192.168.1.29:8080', // APP直连地址,wifi变化要修改
		uploadPath: '/user/info/uploadAvatar' // 上传路径
	},
	production: {
		h5: 'https://api.yourdomain.com',
		app: 'https://api.yourdomain.com',
		uploadPath: '/user/info/uploadAvatar'
	}
}

export default envConfigs[process.env.NODE_ENV || 'development']